package org.easydarwin.view.dialogs;


import android.app.Dialog;
import android.content.Context;
import android.text.TextUtils;
import android.widget.TextView;

import org.easydarwin.easyrtc.R;

public class DialogDefaultLoading extends Dialog {

    public DialogDefaultLoading(Context context) {
        this(context, R.style.CustomProgressDialog);
    }

    String title;
    public DialogDefaultLoading(Context context, String title) {
        this(context, R.style.CustomProgressDialog);
        this.title = title;
    }

    public DialogDefaultLoading(Context context, int theme) {
        super(context, theme);
        setContentView(R.layout.custom_progress_loading);
        setCanceledOnTouchOutside(false);
        if(!TextUtils.isEmpty(title)){
            ((TextView) findViewById(R.id.tv_tips)).setText(title);
        }
    }

    @Override
    public void show() {
        super.show();
    }
}
